package com.fafa.pos.vo;

/**
 * Created by ZhouBing on 2017/8/10.
 *
 * 当前已登录用户的信息
 */
public class CurUser {

    private String userId;
    private String code;
    private String userName;
    private static CurUser user;

    private CurUser(){}

    public static CurUser getUser(){
        if(user==null){
            user = new CurUser();
        }
        return user;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
